package com.housekeeper.maili.customjcvedioplayer;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.bumptech.glide.Glide;



public class CustomActivity extends AppCompatActivity {

    private CustomJZVedioPlayer custom_jz;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_custom);
        initView();
    }


    private void initView() {
        custom_jz = (CustomJZVedioPlayer) findViewById(R.id.custom_jz);
        custom_jz.setUp("http://jzvd.nathen.cn/342a5f7ef6124a4a8faf00e738b8bee4/cf6d9db0bd4d41f59d09ea0a81e918fd-5287d2089db37e62345123a1be272f8b.mp4"
                , 0, "自定义View");
        Glide.with(this)
                .load("http://jzvd-pic.nathen.cn/jzvd-pic/1bb2ebbe-140d-4e2e-abd2-9e7e564f71ac.png")
                .into(custom_jz.thumbImageView);
    }
}
